﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="ArchiveList.aspx.cs" Inherits="Jzy.Web.Project.ArchiveList" %>
<%@ Register Src="../Common/Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <style type="text/css">
        #list table tr td
        {
            height: 25px;
        }
    </style>
    <script type="text/javascript">
        function btnRestart_Click()
        {
            var selectValue = document.getElementById('<%=hidSelectIDs.ClientID %>').value;
            if (selectValue == '')
            {
                alert("请选择项目!");
                return false;
            }   
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="toolbar">
        <ul>
            <li style="width:100px;"><a id="lnkRestart" runat="server" href="javascript:go()"><span><b style="background-image: url(../common/images/icons/startup.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="重新启动"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="Label1" runat="server" Text="已归档项目" Font-Bold="true"></asp:Label>            
        </div>
        <div class="right">
            <asp:LinkButton ID="btnPre" runat="server" OnClick="btnPre_Click">LinkButton</asp:LinkButton>&nbsp;<asp:DropDownList
                ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
            </asp:DropDownList>
            &nbsp;<asp:LinkButton ID="btnNext" runat="server" OnClick="btnNext_Click">LinkButton</asp:LinkButton>&nbsp;
        </div>
    </div>   
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th style="text-align:center;" nowrap="nowrap">
                    <div style="width:40px;">重要性</div>
                </th>
                <th style="">
                    项目名称
                </th>
                <th style=" text-align:center;" nowrap="nowrap">
                    项目经理
                </th>
                <th style="">
                    项目标的(万元)
                </th>
                <th style="" nowrap="nowrap">
                    开始日期
                </th>
                <th style="" nowrap="nowrap">
                    结束日期
                </th>                         
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;<asp:HiddenField ID="hidStatus" runat="server" Value='<%# Eval("Status") %>' />
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td style="text-align:center;">
                            <%#(Jzy.Model.Project.PrjImportance)(int)Eval("Importance") %>&nbsp;
                        </td>
                        <td nowrap="nowrap">
                            <asp:HyperLink ID="lnkName" runat="server"><%#Eval("Name") %></asp:HyperLink>&nbsp;                            
                        </td>
                        <td style="text-align:center;">
                            <%#Eval("PMName") %>&nbsp;
                        </td>
                        <td style="text-align:center;">
                            <asp:Label ID="lblStatus" runat="server" Text='<%#Eval("Budget") %>'></asp:Label></td>
                        <td>
                            <%#Eval("StartTime","{0:yyyy-MM-dd}") %>&nbsp;
                        </td>
                        <td>
                            <%#Eval("EndTime","{0:yyyy-MM-dd}") %>&nbsp;
                        </td>
                       
                    </tr>
                   
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="8" class="empty">
                            没有项目
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnRestart" runat="server" Text="重新启动" 
            style=" letter-spacing:normal;" onclick="btnRestart_Click" /><asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" />
        <asp:Button ID="btnRefresh" runat="server" Text="刷新" OnClick="btnRefresh_Click" />
    </div>
</asp:Content>
